﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="activities.aspx.cs" Inherits="activities" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>团队活动</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <!--内容开始-->
    <div class="main">
        <div class="act" style="background: url(images/ad/ad6-1bg.png);">
            <div class="acot" id="act">
                <p class="actlt" id="LeftArr">
                </p>
                <div class="actcot">
                    <ul class="actnr">
                        <%
                            if(teamActs!=null)
                            {
                            int liSize = teamActs.Length / 3;
                            if (teamActs.Length % 3 > 0)
                            {
                                liSize = liSize + 1;
                            }
                            for (int j = 0; j < liSize; j++)
                            {%><li>
                                <% for (int i = j * 3; i < teamActs.Length; i++)
                                   {%>
                                <a href="activityifo-<%=teamActs[i].Actid %>.html">
                                    <p class="tu">
                                        <img alt="<%=teamActs[i].Name %>" src="<%=teamActs[i].Listpic %>" /></p>
                                    <div class="zinr">
                                        <p class="zinr1">
                                            <%=teamActs[i].Name%></p>
                                        <p class="zinr2">
                                            <%=teamActs[i].Start%></p>
                                        <p class="zinr2">
                                            <%=teamActs[i].Shortdesc%></p>
                                    </div>
                                </a>
                                <%
                                    if ((i + 1) % 3 == 0)
                                    {
                                        break;
                                    }
                                   }
                                %>
                            </li>
                        <%
                            } }%>
                    </ul>
                </div>
                <p class="actrt" id="RightArr">
                </p>
            </div>
        </div>
    </div>
    <!--内容结束-->

    <script type="text/javascript" language="javascript">

        //鼠标移到图片，出现文字层
        jQuery(document).ready(function() {
            jQuery('.actnr').find('.zinr').hide().end().find('li a').mouseover(function() {
                jQuery(this).find(".zinr").show();
            });
            jQuery('.actnr').find('li a').mouseout(function() {
                jQuery(this).find(".zinr").hide();
            });
        });
        //左右按钮控制图片滚动
        jQuery("#act").Scroll({ line: 1, speed: 100, left: "RightArr", right: "LeftArr", timer: "5000" });
	
    </script>

</asp:Content>
